//
//  CustRecordViewController.h
//  iHealthEHR
//
//  Created by Joseph Ayo Akinyele on 3/30/10.
//  Copyright 2010 Johns Hopkins University. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DetailedViewController.h"
#import "MedsViewController.h"
#import "ProfileCell.h"
#import "JHUHospital.h"
#import "XMLParser.h"
#import "LoginPrompt.h"
#import "GoogleHealth.h"
#import "CPABEInterface.h"
#import "UserSettings.h"
@class DetailedViewController;
@class MedsViewController;

@interface CustRecordViewController : UITableViewController 
			<UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, UIAlertViewDelegate, GHMethods>
{
	// key for mapping ccr subsections (ccrSections) which user sees
	// to the actual label on CCR XML entries (ccrCategoryKey) for identification.
	NSArray *ccrSections, *ccrCategoryKey, *ccrImageKey;
	// dictionary with profile_name => entries mapping. 
	NSMutableArray *ccrEntries, *ccrCacheImage;	
	// in case we need to pull down private-keys?
	JHUHospital *jhu;
	GoogleHealth *gh;
	DetailedViewController *detailedView;
	// loads hospital about us webpage
	MedsViewController *info;
	BOOL lastUpload;
	CPABEInterface *cpabe;
}

@property (nonatomic, retain) NSArray *ccrSections, *ccrCategoryKey;
@property (nonatomic, retain) NSMutableArray *ccrEntries;
@property (nonatomic, retain) JHUHospital *jhu;
@property (nonatomic, retain) GoogleHealth *gh;
@property (nonatomic, retain) CPABEInterface *cpabe;
-(void) logout;
-(void) myCCROptionsJHU;
-(NSString *) getItemCount:(NSString *)section;
-(NSArray *) getEntryByCategory:(NSString *)section;
-(NSString *) parseDescription:(CCRObject *) object ofCCR:(NSString *) section;

@end
